function foo(x,y) {
    console.log(this.a,x + y);
    
}
var obj = {
    a:1
}

// foo.call(obj,2, 3) //Function.prototy.call
// foo.apply(obj,[2,3])
let bar = foo.bind(obj)
bar(2, 3)